package day_2022_4_to_7.day48;

/**
 * @author haomin
 * @date 2022/05/24 20:01
 **/
public class Day27_1_Add {
    public int Add(int num1,int num2) {
        while(num2 != 0){
            int temp = num1 ^ num2;
            num2 = (num1 & num2)<<1;
            num1 = temp;
        }
        return num1;
    }
}